<template>
    <div>
       <!--列表渲染-->
       <ul v-for="(item,index) in movies" :key="item.id">
        <li>{{ item.name }}---{{ item.score }}</li>
       </ul>
    </div>
</template>
<script setup>
import {ref} from 'vue'
let movies = ref([
    {id:1,name:'流浪地球',score:8.5},
    {id:2,name:'小美好',score:6.5}
])
//delete movies.value[0]
//console.log(movies.value)
</script>
<style scoped>
</style>